package com.yex.constant;


/**
 * @Author:
 * @Date: Created in 2018/1/30 16:10
 * @Version: V1
 * @Description: 常量工具类
 */
public class Constant {
    /**
     * @deprecated 该常量废弃
     */
    public static boolean isRelease = false;


    public static String Domain = "Domain";
    public static String GoogleAuthName = "GoogleAuthName";
    public static String MailName = "MailName";
    public static String APPKEY = "APPKEY";

    public static String IMAGE_SERVER_URL = "imageServerUrl";

    //OSS相关
    public static String IS_OPEN_OSS = "IS_OPEN_OSS";
    public static String OSSURL = "OSSURL";
    public static String OSSEndpoint = "OSSEndpoint";
    public static String OSSAccessKeyId = "OSSAccessKeyId";
    public static String OSSAccessKeySecret = "OSSAccessKeySecret";
    public static String OSSBucketName = "OSSBucketName";

    public static String IS_APPKEY = "IS_APPKEY";
    public static String USDT_ID = "USDT_ID";
    public static String BTC_ID = "BTC_ID";
    public static String ETH_ID = "ETH_ID";
    public static String YEX_ID = "YEX_ID";
    public static String CNY_PRIZE = "CNY_PRIZE";
    public static boolean closeLimit = false;

    public static String IOS_MD5 = "IOS_MD5";
    public static String ANDROID_MD5 = "ANDROID_MD5";
    public static String IOS_MD5_v2 = "IOS_MD5_v2";
    public static String ANDROID_MD5_v2 = "ANDROID_MD5_v2";

    /**
     * VIP等级
     */
    public static int VIP = 6;

    /**
     * 虚拟币提现手续费
     */
    public static int TYPES = 10;

    /**
     * 短信有效时间
     */
    public static Long messageTime = 3 * 60 * 1000L;

    /**
     * 邮件有效时间
     */
    public static Long mailTime = 30 * 60 * 1000L;

    /**
     * 两次请求的间隔时间
     */
    public static Long twiceTime = 1 * 60 * 1000L;

    /**
     * 充值记录分页
     */
    public static int RecordPerPage = 20;


    /**
     * 登录记录分页
     */
    public static int LoginRecordPage = 5;

    /**
     * app分页数量
     */
    public static int AppRecordPerPage = 10;

    /**
     * 虚拟币每天提现次数
     */
    public static int VirtualCoinWithdrawTimes = 10;

    /**
     * 人民币每天提现次数
     */
    public static int CnyWithdrawTimes = 10;
    public static boolean TradeSelf = true;


    public static String uploadPicDirectory = "upload" + "/" + "images";

    public static String FTPDirectory = "FTPDirectory";
    public static String DataBaseDirectory = "upload" + "/" + "dataBase";

    /**
     * 邮箱正则
     */
    public static String EmailReg = "^([a-zA-Z0-9]+[_|\\_|\\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\\_|\\.]?)*[a-zA-Z0-9]+\\.[a-zA-Z]{2,3}$";


    //public static String PhoneReg = "^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(17[013678])|(18[0,5-9]))\\d{8}$";

    /**
     * 错误N次之后需要等待2小时才能重试
     */
    public static int ErrorCountLimit = 10;

    /**
     * 后台登录错误
     */
    public static int ErrorCountAdminLimit = 30;


    public static final String SMTP = "smtp";
    public static final String MAIL_NAME = "mailName";
    public static final String MAIL_PASSWORD = "mailPassword";
    public static final String VALIDATE_MESSAGE_CONTENT = "validateMessageContent";
    public static final String SEND_MESSAGE_RECHARGE = "sendMessageRecharge";

    public static final String regmailContent = "regmailContent";
    public static final String bindPhoneMailContent = "bindPhoneMailContent";


    public static final String MESSAGE_PASSWORD = "messagePassword";
    public static final String MESSAGE_NAME = "messageName";
    public static final String messageURL = "messageURL";
    public static final String sms_template_code = "sms_template_code";
    public static final String WEB_NAME = "webName";

    public static final String mailValidateContent = "mailValidateContent";
    public static final String firstLevelDomain = "firstLevelDomain";
    public static final String englishName = "englishName";
    public static final String fulldomain = "fulldomain";
    public static final String serviceQQ = "serviceQQ";
    public static final String weibo = "weibo";
    public static final String weixin = "weixin";
    public static final String telephone = "telephone";
    public static final String virtualCoinType = "virtualCoinType";
    public static final String webinfo = "webinfo";
    public static final String findPasswordMail = "findPasswordMail";

    //系统数据key
    public static final String CONSTANT_MAP = "ConstantMap";

    //账户设置邮件
    public static final String accountBindContent = "accountBindContent";

    /* usdt-trans-config */
    public static String omni_usdtId = "31";
    public static String btc_trans_minBal = "0.02";
    public static String spring_cache_dir = "/tmp";

    public final static String CHECK_MONITOR="C1_CHECK_MONITOR";
    public final static String CHECK_MONITOR_ISOPEN="C1_CHECK_MONITOR_ISOPEN";

}
